cards: the castle rules engine - #1484
Open
aaylward wants to merge 3 commits into
Open
Conversation
Immutable Player and GameState value types for Castle (Palace) beside the golf engine: setup swaps, lowest-card opening, equal-or-higher plays, twos and tens, four-of-a-kind burns, must-play-or-pick-up, the face-up and blind face-down rows, finish order, abandonment.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
1d4-web | 5c671ab | Commit Preview URL Branch Preview URL |
Sep 03 2026, 01:29 AM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
iili | 5c671ab | Commit Preview URL Branch Preview URL |
Sep 03 2026, 01:30 AM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
ast-lol | 5c671ab | Commit Preview URL Branch Preview URL |
Sep 03 2026, 01:31 AM |
… tests name one rule each
This was referenced Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The rules engine for Castle (the shedding game also played as Palace) as immutable Player/GameState value types next to the golf engine, ready for the games hub to host as its second game. The rules it plays are stated on GameState and pinned in game_state_test; no wire or hub code yet. Part of #77.